import 'package:mobx/mobx.dart';
import 'package:dio/dio.dart';
import 'package:bookapp/api/http.dart';

part 'find_store.g.dart';


class FindStore = _FindStore with _$FindStore;


FindStore $store = FindStore();

abstract class _FindStore with Store {
  @observable
  bool tile = false;
  @observable
  num count = 10;

  @action
  void setTile(String key,dynamic value) => tile = value;

  @action
  num counter() => this.count++;

  void getInfo() async {
    Response response = await HttpRequest().dio.get("http://api.soscoon.com/playlist/hot");
    print(response);
  }
}